<div>
    <div class="modal-header">
        <button class="close" data-dismiss="modal" ng-click="cancel()" title="Đóng">×</button>
        <h4 class="modal-title">Thêm video group</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="col-xs-12 form-group well">
                {{ form('class': 'forms-horizontal' , 'id' : 'formSearchSelectAddVideoGroupToObject') }}
                <div class="col-md-11 padding-left-none">
                    <div class="form-group">
                        <div class="col-md-3 padding-left-none">
                            {{ text_field('id' , 'class' :'forms-control col-xs-12' , ['placeholder' : 'Tên file video']) }}
                        </div>
                        <div class="col-md-3">
                            {{ formSearchVideoGroup.render('name' , ['placeholder' : 'Tên video group']) }}
                        </div>
                        <div class="col-md-3">
                            {{ formSearchVideoGroup.render('category_id') }}
                        </div>
                        <div class="col-md-3">
                            {{ formSearchVideoGroup.render('national_id') }}
                        </div>
                    </div>
                </div>
                <div class="col-md-1">
                    <button type="submit" class="btn btn-xs btn-default btnSeachVideoGroup">Tìm</button>
                </div>
                {{ end_form() }}
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12">
                {{ form(config.application.backendUrl ~ '/ajax/videoGroup/addVideoGroupToObject?object_type=' ~ objectType ~ '&object_id=' ~ objectId , 'class': 'forms-horizontal' , 'id' : 'formSelectVideoGroup') }}
                <div id="listSelectVideoGroupsToObject">
                    {% include 'ajax-video-group/result_search_video_group.volt'  %}
                </div>
                {{ end_form() }}
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
        <button type="button" data-loading-text="<i class='ace-icon fa fa-spinner fa-spin white bigger-125'></i>Đang tải..." class="btn btn-primary btnAddVideoGroupToObject">Thêm</button>
    </div>
</div>
